import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);
// 登录验证
export default new Vuex.Store({
    state: {
        navConActiveIndex: 1,
        gmContent: [{
            label: "hello",
            value: "store",
        }],
        jsModuleKey: "",
    },
    mutations: {
        changeNavConActiveIndex(state, idx) {
            state.navConActiveIndex = idx;
        },
        changeGmContent(state, obj) {
            state.gmContent = obj;
        },
        changeJsModule(state, key) {
            state.jsModuleKey = key;
        },
    },
})